#===============================================================================
# @brief    cmake file
# Copyright (c) CompanyNameMagicTag 2023-2023. All rights reserved.
#===============================================================================
if(DEFINED CONFIG_OTHER_BEARPI)
set(SOURCES_LIST
    ${CMAKE_CURRENT_SOURCE_DIR}/sle_uart_server/sle_uart_server_adv.c
    ${CMAKE_CURRENT_SOURCE_DIR}/sle_uart_server/sle_uart_server.c
    ${CMAKE_CURRENT_SOURCE_DIR}/main_oth_1.c
    ${CMAKE_CURRENT_SOURCE_DIR}/module/voc/voc.c
    ${CMAKE_CURRENT_SOURCE_DIR}/module/rgb/rgb.c
    ${CMAKE_CURRENT_SOURCE_DIR}/mydevice/mydevice.c
    ${CMAKE_CURRENT_SOURCE_DIR}/function/redoor/redoor.c
)
set(HEADER_LIST 
    ${CMAKE_CURRENT_SOURCE_DIR}/sle_uart_server
    ${CMAKE_CURRENT_SOURCE_DIR}/module/sht3x
    ${CMAKE_CURRENT_SOURCE_DIR}/module/rgb
    ${CMAKE_CURRENT_SOURCE_DIR}/mydevice
    ${CMAKE_CURRENT_SOURCE_DIR}/function/redoor
)
elseif(DEFINED CONFIG_ONE_BEARPI)
set(SOURCES_LIST
    ${CMAKE_CURRENT_SOURCE_DIR}/sle_uart_client/sle_uart_client.c
    ${CMAKE_CURRENT_SOURCE_DIR}/main_one.c
    ${CMAKE_CURRENT_SOURCE_DIR}/module/lora/lora.c
    ${CMAKE_CURRENT_SOURCE_DIR}/mydevice/mydevice.c
)
set(HEADER_LIST 
    ${CMAKE_CURRENT_SOURCE_DIR}/sle_uart_client
    ${CMAKE_CURRENT_SOURCE_DIR}/module/lora
    ${CMAKE_CURRENT_SOURCE_DIR}/mydevice
)
endif()

set(SOURCES "${SOURCES}" ${SOURCES_LIST} PARENT_SCOPE)
set(PUBLIC_HEADER "${PUBLIC_HEADER}" ${HEADER_LIST} PARENT_SCOPE)